/************************************************
 *** Datei: DroneSwarmGUI.h
 ***
 *** Erstellt am: 30.05.2012
 ***       Autor: Max Stark <Max.Stark88@googlemail.com>
 ***	 Version: 1.0
 ***
 *** Beschreibung:
 *** <hier Beschreibung einfuegen>
 ************************************************/

#ifndef DRONESWARMGUI_H
#define DRONESWARMGUI_H

#include <QtGui/QMainWindow>
#include "forms/ui_DroneSwarmGUI.h"

#include <view/IDroneSwarmUI.h>
#include <view/UIController.h>
#include <logic/DroneSwarmController.h>
//#include <logic/DroneNetController.h>
#include <model/IDroneNavData.h>

#include <iostream>
#include <vector>
using namespace std;

class DroneSwarmGUI : public QMainWindow, public IDroneSwarmUI {
    Q_OBJECT

private:
    Ui::DroneSwarmGUIClass ui;
    UIController* uiController;

public:
    DroneSwarmGUI(UIController* uiController, QWidget *parent = 0);
    ~DroneSwarmGUI();

    void update(int update);

private slots:
	void connectDrone();
	//void sendMasterRequest(QTableWidgetItem* item);
	void sendMasterRequest1(); // { this->uiController->sendMasterMessage(0); }
	void sendMasterRequest2(); // { this->uiController->sendMasterMessage(1); }
	void sendMasterRequest3(); // { this->uiController->sendMasterMessage(2); }
	void sendMasterRequest4(); // { this->uiController->sendMasterMessage(3); }
	void sendMasterRequest5(); // { this->uiController->sendMasterMessage(4); }
};

#endif // DRONESWARMGUI_H
